package org.jeecg.modules.power.order.service.impl;


import org.jeecg.modules.app.order.vo.ProblemOrderEnt;
import org.jeecg.modules.power.order.entity.YlProblemOrder;
import org.jeecg.modules.power.order.mapper.YlProblemOrderMapper;
import org.jeecg.modules.power.order.service.IYlProblemOrderService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 订单硬件问题表
 * @Author: jeecg-boot
 * @Date:   2024-07-31
 * @Version: V1.0
 */
@Service
public class YlProblemOrderServiceImpl extends ServiceImpl<YlProblemOrderMapper, YlProblemOrder> implements IYlProblemOrderService {


    /**
     * APP运营端首页-求出订单硬件问题数量
     * @param userIds 请求用户id
     * @param groupId 小组id
     * @param type 1今日、2昨日、3本周、4本月   0全部
     * @param shopName 店铺名称
     * @param categoryId 分类id
     * @return
     */
    @Override
    public Integer getProblemOrderQuantity(String userIds,String groupId, int type,String shopName,String categoryId) {
//        String ids = String.format("'%s'", String.join("','", userIds));
        return baseMapper.getProblemOrderQuantity(userIds, groupId, type, shopName, categoryId);
    }

    /**
     * APP运营端首页-求出订单硬件问题 数据
     * @param userIds 请求用户id
     * @param groupId 小组id
     * @param type 1今日、2昨日、3本周、4本月   0全部
     * @param shopName 店铺名称
     * @param categoryId 分类id
     * @return
     */
    @Override
    public List<ProblemOrderEnt> getProblemOrderQuantityList(String userIds, String groupId, int type, String shopName, String categoryId) {
        return baseMapper.getProblemOrderQuantityList(userIds, groupId, type, shopName, categoryId);
    }
}
